package com.boot.shiro.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import lombok.Getter;
import lombok.Setter;

import com.boot.business.common.entity.AbstractEntity;

/**
 * <p>角色表</p>
 */
@Entity
@Table(name = "sys_role")
@Getter
@Setter
public class Role extends AbstractEntity {

	private static final long serialVersionUID = -3851126443783217117L;
	
	
	@Column(name = "role_name", columnDefinition = "varchar(32)  comment '角色名称'")
	private String roleName;
	
	@Column(name = "parent_id", columnDefinition = "varchar(32)  comment '角色父编号'")
	private String parent_id;

	@Column(name = "department", columnDefinition = "varchar(32)  comment '组织ID'")
	private String department;
    
	@Column(name = "remark", columnDefinition = "varchar(250)  comment '备注'")
	private String remark;

    @Column(name = "sort", columnDefinition = "int(10)  comment '角色排序号'")
	private Integer sort;
    
//    @ManyToMany(mappedBy="roles",cascade=CascadeType.ALL)
//    private Set<Menu> menus;
}
